import { createRouter, createWebHashHistory } from "vue-router";
import Home from "../views/Home.vue";

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/myorder",
    name: "MyOrder",
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/MyOrder.vue"),
  },
  {
    path: "/orderinfo",
    name: "OrderInfo",
    component: () =>
      import(/* webpackChunkName: "about" */ "../components/OrderInfo.vue"),
  },
  {
    path: "/confirmorder",
    name: "ConfirmOrder",
    component: () =>
      import(/* webpackChunkName: "about" */ "../components/ConfirmOrder.vue"),
  },
];

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes,
});

export default router;
